import Vue from "vue"
import App from "./App.vue"
import router from "@/router"
import TypeNav from "@/components/TypeNav"
import Carousel from "@/components/Carousel"
import Pagination from "@/components/Pagination"

import store from "@/store"
//需要引入这个js文件 目的是为了让这个js文件执行
import "@/mock/mockServer"

//全局注册组件  因为home 和search 也要用
Vue.component("TypeNav", TypeNav)

Vue.component("Carousel", Carousel)

Vue.component("Pagination", Pagination)

Vue.config.productionTip = false

new Vue({
  beforeCreate() {
    Vue.prototype.$bus = this
  },
  router,
  store,
  render: (h) => h(App),
}).$mount("#app")
